<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Autovermietung: GetCars Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Autovermietung
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.2 -->
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('class_get_cars.html','');});
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="class_get_cars-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">GetCars Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>A functor which is calling Print() for every <a class="el" href="class_car.html" title="Header for the Car class.">Car</a> in a list.  
 <a href="class_get_cars.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_functors_car_hire_8h_source.html">FunctorsCarHire.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for GetCars:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_get_cars.png" usemap="#GetCars_map" alt=""/>
  <map id="GetCars_map" name="GetCars_map">
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:adeca633d9bf28d2d30e69910957434ec"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_get_cars.html#adeca633d9bf28d2d30e69910957434ec">GetCars</a> (std::string const &amp;manufacturer, std::string const &amp;type)</td></tr>
<tr class="memdesc:adeca633d9bf28d2d30e69910957434ec"><td class="mdescLeft">&#160;</td><td class="mdescRight">CTor of functor <a class="el" href="class_get_cars.html" title="A functor which is calling Print() for every Car in a list.">GetCars</a>.  <a href="#adeca633d9bf28d2d30e69910957434ec"></a><br/></td></tr>
<tr class="separator:adeca633d9bf28d2d30e69910957434ec"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa36143286f1e96acced896b2706b5da5"><td class="memItemLeft" align="right" valign="top">TCars&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_get_cars.html#aa36143286f1e96acced896b2706b5da5">GetCarList</a> () const </td></tr>
<tr class="memdesc:aa36143286f1e96acced896b2706b5da5"><td class="mdescLeft">&#160;</td><td class="mdescRight">getter for retrieving the list of cars  <a href="#aa36143286f1e96acced896b2706b5da5"></a><br/></td></tr>
<tr class="separator:aa36143286f1e96acced896b2706b5da5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af2171a0297001d8bd9985b6df1a014b3"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_get_cars.html#af2171a0297001d8bd9985b6df1a014b3">operator()</a> (<a class="el" href="class_i_car.html">ICar</a> *car)</td></tr>
<tr class="memdesc:af2171a0297001d8bd9985b6df1a014b3"><td class="mdescLeft">&#160;</td><td class="mdescRight">operator() overloaded  <a href="#af2171a0297001d8bd9985b6df1a014b3"></a><br/></td></tr>
<tr class="separator:af2171a0297001d8bd9985b6df1a014b3"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>A functor which is calling Print() for every <a class="el" href="class_car.html" title="Header for the Car class.">Car</a> in a list. </p>
<p>This functor adds cars according to a certain manufacturer, type or both to a list of ICar*. A getter function is used to return the list of cars. </p>

<p>Definition at line <a class="el" href="_functors_car_hire_8h_source.html#l00056">56</a> of file <a class="el" href="_functors_car_hire_8h_source.html">FunctorsCarHire.h</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="adeca633d9bf28d2d30e69910957434ec"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">GetCars::GetCars </td>
          <td>(</td>
          <td class="paramtype">std::string const &amp;&#160;</td>
          <td class="paramname"><em>manufacturer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::string const &amp;&#160;</td>
          <td class="paramname"><em>type</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>CTor of functor <a class="el" href="class_get_cars.html" title="A functor which is calling Print() for every Car in a list.">GetCars</a>. </p>
<p>The constructor stores the information of the car (manufacturer and type) in variables. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">manufacturer</td><td>The manufactuer of a car </td></tr>
    <tr><td class="paramname">type</td><td>The type of a car </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="_functors_car_hire_8h_source.html#l00065">65</a> of file <a class="el" href="_functors_car_hire_8h_source.html">FunctorsCarHire.h</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="aa36143286f1e96acced896b2706b5da5"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">TCars GetCars::GetCarList </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>getter for retrieving the list of cars </p>
<p>The getter returns the list just created. All cars that match the information are stored in this list. </p>
<dl class="section return"><dt>Returns</dt><dd>TCars The list of cars </dd></dl>

<p>Definition at line <a class="el" href="_functors_car_hire_8h_source.html#l00108">108</a> of file <a class="el" href="_functors_car_hire_8h_source.html">FunctorsCarHire.h</a>.</p>

</div>
</div>
<a class="anchor" id="af2171a0297001d8bd9985b6df1a014b3"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void GetCars::operator() </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_i_car.html">ICar</a> *&#160;</td>
          <td class="paramname"><em>car</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>operator() overloaded </p>
<p>This function compares the manufacturer of the car with the manufacturer committed and the type of the car with the type commited. If there is no statement given (string of manufacturer and type are empty) all cars will be added to the list. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">car</td><td>The car to be added to the list </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="_functors_car_hire_8h_source.html#l00076">76</a> of file <a class="el" href="_functors_car_hire_8h_source.html">FunctorsCarHire.h</a>.</p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="class_get_cars.html">GetCars</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.2 </li>
  </ul>
</div>
</body>
</html>
